package com.ru.application.creditscore.bean;

import java.io.Serializable;
import java.util.HashMap;
import javax.faces.context.FacesContext;

public class BaseBean<E>implements Serializable {
     
    private static final long serialVersionUID = 1L;
    private HashMap<String, String> toolBar;
    private E type;
    
    public BaseBean() {
    
    }
    
    public BaseBean(E type) {
	this.type = type;   
    }
    
    public FacesContext getFacesContext() {
      return FacesContext.getCurrentInstance();
    }

    public javax.faces.application.Application getApplication() {
      return getFacesContext().getApplication();
    }

    public HashMap<String, String> getToolBar() {
        return toolBar;
    }

    public void setToolBar(HashMap<String, String> toolBar) {
        this.toolBar = toolBar;
    }

    public E getType() {
        return type;
    }
   
}
